package com.test.java01;

public class Goods {
    private String id;
    private String name;
    private int price;
    private int store;

    /*空参构造*/
    public Goods(){

    }
    /*带参构造*/
    public Goods(String id,String name,int price,int store){
        this.id=id;
        this.name=name;
        this.price=price;
        this.store=store;
    }
    public void setId(String id){
        this.id=id;
    }
    public String getId(){
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setPrice(int price){
        this.price=price;
    }
    public int getPrice(){
        return  price;
    }

    public void setStore(int store) {
        this.store = store;
    }

    public int getStore() {
        return store;
    }
}
